import reqest from "./request"
export function getSwiper(type = 1) {
  return reqest({
    url: "/banner",
    data: {
      type
    },
    methods: "GET"
  })
};
// 推荐歌曲,也是巅峰榜单
export function getRecommendSong(id) {
  return reqest({
    url: "/playlist/detail",
    data: {
      id
    },
    methods: "GET"
  })
};
// 热门歌单
export function getHotSong(cat="全部",limit=6,offset=0){
  return reqest({
    url:"/top/playlist",
    data:{
      limit,
      cat,
      offset
    }
  })
}
// 更多热门歌单分类
export function getMoreMenu(){
  return reqest({
    url: '/playlist/hot',
  })
}
// // 巅峰榜单
// export function getSongRank(id){
//   return reqest({
//     url:"/"
//   })
// }